#ifndef byte_queue
#define byte_queue
#include "typedef.h"
#ifdef __cplusplus
extern "C" {
#endif

typedef struct {
	uint16 i;
	uint16 o;
	uint16 mask;
	uint8* buf;
}sByteQueue;
int8 ByteQueue_enqueue(sByteQueue* queue, byte b);
int16 ByteQueue_dequeue(sByteQueue* queue);
void ByteQueue_init(sByteQueue* queue, uint8* buf, uint16 size);

#ifdef __cplusplus
}
#endif

#endif

